//=============================================================================
/**
 *
 *	@file		evt_npcobj.c
 *	@brief		NPCコンバートデータ用関数
 *	@author		hosaka genya
 *	@data		2009.03.12
 *
 *	@note		fieldobj_drawdata.cからコピーしたデータを使用しています。
 *	@note		GSではフィールドOBJの変更はもうないハズですが、
 *	@note		fieldobj_drawdata.cが更新された際にはこちらのデータも更新する必要があります。
 *
 */
//=============================================================================
#include "common.h"
#include "field\fieldobj_code.h"
#include "data/mmodel/mmodel.naix"

#include "evt_npcobj.h"

//--------------------------------------------------------------
///	保持データ構造体
//==============================================================
typedef struct {
	int ObjCode;
	int TexIdx;
} PKTHLN_NPC_DATA;

//--------------------------------------------------------------
//	オブジェコードとテクスチャIDの対応データテーブル
// ※fieldobj_drawdata.cからコピーしました。
//==============================================================
const PKTHLN_NPC_DATA DATA_PkthlnNpcData[] = {
{ BABYBOY1,NARC_mmodel_babyboy1_nsbtx,},
{ BABYGIRL1,NARC_mmodel_babygirl1_nsbtx,},
{ BOY1,NARC_mmodel_boy1_nsbtx,},
{ BOY2,NARC_mmodel_boy2_nsbtx,},
{ BOY3,NARC_mmodel_boy3_nsbtx,},
{ GIRL1,NARC_mmodel_girl1_nsbtx,},
{ GIRL2,NARC_mmodel_girl2_nsbtx,},
{ GIRL3,NARC_mmodel_girl3_nsbtx,},
{ MAN1,NARC_mmodel_man1_nsbtx,},
{ MAN2,NARC_mmodel_man2_nsbtx,},
{ MAN3,NARC_mmodel_man3_nsbtx,},
{ WOMAN1,NARC_mmodel_woman1_nsbtx,},
{ WOMAN2,NARC_mmodel_woman2_nsbtx,},
{ WOMAN3,NARC_mmodel_woman3_nsbtx,},
{ MIDDLEMAN1,NARC_mmodel_middleman1_nsbtx,},
{ MIDDLEWOMAN1,NARC_mmodel_middlewoman1_nsbtx,},
{ OLDMAN1,NARC_mmodel_oldman1_nsbtx,},
{ OLDWOMAN1,NARC_mmodel_oldwoman1_nsbtx,},
{ BIGMAN,NARC_mmodel_bigman_nsbtx,},
{ MOUNT,NARC_mmodel_mount_nsbtx,},
{ CYCLEHERO,NARC_mmodel_cyclehero_nsbtx,},
{ REPORTER,NARC_mmodel_reporter_nsbtx,},
{ CAMERAMAN,NARC_mmodel_cameraman_nsbtx,},
{ SHOPM1,NARC_mmodel_shopm1_nsbtx,},
{ SHOPW1,NARC_mmodel_shopw1_nsbtx,},
{ ASSISTANTM,NARC_mmodel_assistantm_nsbtx,},
{ ASSISTANTW,NARC_mmodel_assistantw_nsbtx,},
{ BADMAN,NARC_mmodel_badman_nsbtx,},
{ SKIERW,NARC_mmodel_skierw_nsbtx,},
{ POLICEMAN,NARC_mmodel_policeman_nsbtx,},
{ IDOL,NARC_mmodel_idol_nsbtx,},
{ GENTLEMAN,NARC_mmodel_gentleman_nsbtx,},
{ LADY,NARC_mmodel_lady_nsbtx,},
{ CYCLEM,NARC_mmodel_cyclem_nsbtx,},
{ CYCLEW,NARC_mmodel_cyclew_nsbtx,},
{ WORKMAN,NARC_mmodel_workman_nsbtx,},
{ FARMER,NARC_mmodel_farmer_nsbtx,},
{ COWGIRL,NARC_mmodel_cowgirl_nsbtx,},
{ CLOWN,NARC_mmodel_clown_nsbtx,},
{ ARTIST,NARC_mmodel_artist_nsbtx,},
{ SPORTSMAN,NARC_mmodel_sportsman_nsbtx,},
{ EXPLORE,NARC_mmodel_explore_nsbtx,},
{ FIGHTER,NARC_mmodel_fighter_nsbtx,},
{ CAMPBOY,NARC_mmodel_campboy_nsbtx,},
{ PICNICGIRL,NARC_mmodel_picnicgirl_nsbtx,},
{ FISHING,NARC_mmodel_fishing_nsbtx,},
{ AMBRELLA,NARC_mmodel_ambrella_nsbtx,},
{ SEAMAN,NARC_mmodel_seaman_nsbtx,},
{ WAITER,NARC_mmodel_waiter_nsbtx,},
{ WAITRESS,NARC_mmodel_waitress_nsbtx,},
{ GORGGEOUSM,NARC_mmodel_gorggeousm_nsbtx,},
{ GORGGEOUSW,NARC_mmodel_gorggeousw_nsbtx,},
{ MAN5,NARC_mmodel_man5_nsbtx,},
{ WOMAN5,NARC_mmodel_woman5_nsbtx,},
{ MYSTERY,NARC_mmodel_mystery_nsbtx,},
{ PIKACHU,NARC_mmodel_pikachu_nsbtx,},
{ ROCK,NARC_mmodel_rock_nsbtx,},
{ BREAKROCK,NARC_mmodel_breakrock_nsbtx,},
{ TREE,NARC_mmodel_tree_nsbtx,},
{ MONATERBALL,NARC_mmodel_monaterball_nsbtx,},
{ HEROINE,NARC_mmodel_heroine_nsbtx,},
{ CYCLEHEROINE,NARC_mmodel_cycleheroine_nsbtx,},
{ DOCTOR,NARC_mmodel_doctor_nsbtx,},
{ SEVEN1,NARC_mmodel_seven1_nsbtx,},
{ SEVEN2,NARC_mmodel_seven2_nsbtx,},
{ SEVEN3,NARC_mmodel_seven3_nsbtx,},
{ SEVEN4,NARC_mmodel_seven4_nsbtx,},
{ SEVEN5,NARC_mmodel_seven5_nsbtx,},
{ GSBOY1,NARC_mmodel_gsboy1_nsbtx,},
{ GSRIVEL,NARC_mmodel_gsrivel_nsbtx,},
{ SUNGLASSES,NARC_mmodel_sunglasses_nsbtx,},
{ TOWERBOSS,NARC_mmodel_towerboss_nsbtx,},
{ MAID,NARC_mmodel_maid_nsbtx,},
{ SPHERO,NARC_mmodel_sphero_nsbtx,},
{ SPHEROINE,NARC_mmodel_spheroine_nsbtx,},
{ WATERHERO,NARC_mmodel_waterhero_nsbtx,},
{ WATERHEROINE,NARC_mmodel_waterheroine_nsbtx,},
{ SWIMHERO,NARC_mmodel_swimhero_nsbtx,},
{ SWIMHEROINE,NARC_mmodel_swimheroine_nsbtx,},
{ FISHINGHERO,NARC_mmodel_fishinghero_nsbtx,},
{ FISHINGHEROINE,NARC_mmodel_fish_heroine_nsbtx,},
{ LADDERHERO,NARC_mmodel_ladder_hero_nsbtx,},
{ LADDERHEROINE,NARC_mmodel_ladder_heroine_nsbtx,},
{ DELIVERY,NARC_mmodel_delivery_nsbtx,},
{ POKEHERO,NARC_mmodel_pokehero_nsbtx,},
{ POKEHEROINE,NARC_mmodel_pokeheroine_nsbtx,},
{ SAVEHERO,NARC_mmodel_savehero_nsbtx,},
{ SAVEHEROINE,NARC_mmodel_saveheroine_nsbtx,},
{ BANZAIHERO,NARC_mmodel_banzaihero_nsbtx,},
{ BANZAIHEROINE,NARC_mmodel_banzaiheroine_nsbtx,},
{ RED,NARC_mmodel_red_nsbtx,},
{ THIEF,NARC_mmodel_thief_nsbtx,},
{ ITAKO,NARC_mmodel_itako_nsbtx,},
{ BOZU,NARC_mmodel_bozu_nsbtx,},
{ ROCKETW,NARC_mmodel_rocketw_nsbtx,},
{ ROCKETM,NARC_mmodel_rocketm_nsbtx,},
{ RKANBUW,NARC_mmodel_rkanbuw_nsbtx,},
{ RKANBUM,NARC_mmodel_rkanbum_nsbtx,},
{ BOARDER,NARC_mmodel_boarder_nsbtx,},
{ FIRE,NARC_mmodel_fire_nsbtx,},
{ GANG,NARC_mmodel_gang_nsbtx,},
{ DANCER,NARC_mmodel_dancer_nsbtx,},
{ MASAKI,NARC_mmodel_masaki_nsbtx,},
{ CAPTAIN,NARC_mmodel_captain_nsbtx,},
{ RGYARADOSU,NARC_mmodel_rgyaradosu_nsbtx,},
{ DPHERO,NARC_mmodel_dphero_nsbtx,},
{ DPHEROINE,NARC_mmodel_dpheroine_nsbtx,},
{ ITAKO2,NARC_mmodel_itako__nsbtx,},

{ GSBABYBOY1,NARC_mmodel_gsbabyboy1_nsbtx,},
{ GSBABYGIRL1,NARC_mmodel_gsbabygirl1_nsbtx,},
{ GSBOY2,NARC_mmodel_gsboy2_nsbtx,},
{ GSBOY3,NARC_mmodel_gsboy3_nsbtx,},
{ GSGIRL1,NARC_mmodel_gsgirl1_nsbtx,},
{ GSGIRL2,NARC_mmodel_gsgirl2_nsbtx,},
{ GSGIRL3,NARC_mmodel_gsgirl3_nsbtx,},
{ GSMAN1,NARC_mmodel_gsman1_nsbtx,},
{ GSMAN2,NARC_mmodel_gsman2_nsbtx,},
{ GSMAN3,NARC_mmodel_gsman3_nsbtx,},
{ GSWOMAN1,NARC_mmodel_gswoman1_nsbtx,},
{ GSWOMAN2,NARC_mmodel_gswoman2_nsbtx,},
{ GSWOMAN3,NARC_mmodel_gswoman3_nsbtx,},
{ GSMIDDLEMAN1,NARC_mmodel_gsmiddleman1_nsbtx,},
{ GSMIDDLEWOMAN1,NARC_mmodel_gsmiddlewoman1_nsbtx,},
{ GSOLDMAN1,NARC_mmodel_gsoldman1_nsbtx,},
{ GSOLDWOMAN1,NARC_mmodel_gsoldwoman1_nsbtx,},
{ GSBIGMAN1,NARC_mmodel_gsbigman1_nsbtx,},
{ GSMOUNT,NARC_mmodel_gsmount_nsbtx,},
{ GSSHOPM1,NARC_mmodel_gsshopm1_nsbtx,},
{ GSPCWOMAN1,NARC_mmodel_gspcwoman1_nsbtx,},
{ GSPCWOMAN2,NARC_mmodel_gspcwoman2_nsbtx,},
{ GSPCWOMAN3,NARC_mmodel_gspcwoman3_nsbtx,},
{ GSASSISTANTM,NARC_mmodel_gsassistantm_nsbtx,},
{ GSGENTLEM,NARC_mmodel_gsgentlem_nsbtx,},
{ GSSWIMMERM,NARC_mmodel_gsswimmerm_nsbtx,},
{ GSSWIMMERW,NARC_mmodel_gsswimmerw_nsbtx,},
{ GSFIGHTER,NARC_mmodel_gsfighter_nsbtx,},
{ GSCAMPBOY,NARC_mmodel_gscampboy_nsbtx,},
{ GSPICNICGIRL,NARC_mmodel_gspicnicgirl_nsbtx,},
{ GSFISHING,NARC_mmodel_gsfishing_nsbtx,},
{ GSSEAMAN,NARC_mmodel_gsseaman_nsbtx,},
{ GSMYSTERY,NARC_mmodel_gsmystery_nsbtx,},
{ GSLEADER1,NARC_mmodel_gsleader1_nsbtx,},
{ GSLEADER2,NARC_mmodel_gsleader2_nsbtx,},
{ GSLEADER3,NARC_mmodel_gsleader3_nsbtx,},
{ GSLEADER4,NARC_mmodel_gsleader4_nsbtx,},
{ GSLEADER5,NARC_mmodel_gsleader5_nsbtx,},
{ GSLEADER6,NARC_mmodel_gsleader6_nsbtx,},
{ GSLEADER7,NARC_mmodel_gsleader7_nsbtx,},
{ GSLEADER8,NARC_mmodel_gsleader8_nsbtx,},
{ GSBIGFOUR1,NARC_mmodel_gsbigfour1_nsbtx,},
{ GSBIGFOUR2,NARC_mmodel_gsbigfour2_nsbtx,},
{ GSBIGFOUR3,NARC_mmodel_gsbigfour3_nsbtx,},
{ GSBIGFOUR4,NARC_mmodel_gsbigfour4_nsbtx,},
{ WATARU,NARC_mmodel_wataru_nsbtx,},
{ GSMAMA,NARC_mmodel_gsmama_nsbtx,},
{ GSOOKIDO,NARC_mmodel_gsookido_nsbtx,},
{ GSDSBOY,NARC_mmodel_gsdsboy_nsbtx,},
{ GSLEADER9,NARC_mmodel_gsleader9_nsbtx,},
{ GSLEADER10,NARC_mmodel_gsleader10_nsbtx,},
{ GSLEADER11,NARC_mmodel_gsleader11_nsbtx,},
{ GSLEADER12,NARC_mmodel_gsleader12_nsbtx,},
{ GSLEADER13,NARC_mmodel_gsleader13_nsbtx,},
{ GSLEADER14,NARC_mmodel_gsleader14_nsbtx,},
{ GSLEADER15,NARC_mmodel_gsleader15_nsbtx,},
{ GSLEADER16,NARC_mmodel_gsleader16_nsbtx,},
{ MANIA,NARC_mmodel_mania_nsbtx,},
{ JUGGLER,NARC_mmodel_juggler_nsbtx,},
{ USOKKY,NARC_mmodel_usokky_nsbtx,},
{ MINAKI,NARC_mmodel_minaki_nsbtx,},
{ THLONOWNER,NARC_mmodel_thlonowner_nsbtx,},
{ INSTRUCTOR,NARC_mmodel_instructor_nsbtx,},
{ KURUMI,NARC_mmodel_kurumi_nsbtx,},
{ NANAMI,NARC_mmodel_nanami_nsbtx,},
{ REDMAMA,NARC_mmodel_redmama_nsbtx,},
{ COUNTERM,NARC_mmodel_counterm_nsbtx,},
{ KABIGON,NARC_mmodel_kabigon_nsbtx,},
{ ICE,NARC_mmodel_ice_nsbtx,},
{ ROTOMF,NARC_mmodel_rotomf_nsbtx,},
{ ROTOMS,NARC_mmodel_rotoms_nsbtx,},
{ ROTOMI,NARC_mmodel_rotomi_nsbtx,},
{ ROTOMW,NARC_mmodel_rotomw_nsbtx,},
{ ROTOMG,NARC_mmodel_rotomg_nsbtx,},

{ STOP,NARC_mmodel_stop_nsbtx,},
{ MANENE,NARC_mmodel_manene_nsbtx,},
{ GTROPHY,NARC_mmodel_gtrophy_nsbtx,},
{ STROPHY,NARC_mmodel_strophy_nsbtx,},
{ BTROPHY,NARC_mmodel_btrophy_nsbtx,},
{ POKEWALL,NARC_mmodel_pokewall_nsbtx,},
{ MEDAL,NARC_mmodel_medal_nsbtx,},
{ SCROLL,NARC_mmodel_scroll_nsbtx,},
{ SIGNSHOES,NARC_mmodel_signshoes_nsbtx,},
{ SIGNCLOTHES,NARC_mmodel_signclothes_nsbtx,},
{ SIGNPOKESTLE,NARC_mmodel_signflag_nsbtx,},
{ SIGNPOKEGEAR,NARC_mmodel_signpokegear_nsbtx,},
{ SIGNBALL,NARC_mmodel_signball_nsbtx,},
{ STATUEHERO,NARC_mmodel_statuehero_nsbtx,},
{ STATUEHEROINE,NARC_mmodel_statuew_nsbtx,},

{ HERO,NARC_mmodel_hero_nsbtx,},
{ RHERO,NARC_mmodel_rhero_nsbtx,},
{ RHEROINE,NARC_mmodel_rheroine_nsbtx,},
{ BANZAIRHERO,NARC_mmodel_rbanzaihero_nsbtx,},
{ BANZAIRHEROINE,NARC_mmodel_rbanzheroine_nsbtx,},
{ PKTHHERO,NARC_mmodel_pkthhero_nsbtx,},
{ PKTHHEROINE,NARC_mmodel_pkthheroine_nsbtx,},

{ BONGURI,NARC_mmodel_bonguri_nsbtx,},
{ BONGURI01,NARC_mmodel_bonguri_r_nsbtx,},
{ BONGURI02,NARC_mmodel_bonguri_y_nsbtx,},
{ BONGURI03,NARC_mmodel_bonguri_b_nsbtx,},
{ BONGURI04,NARC_mmodel_bonguri_g_nsbtx,},
{ BONGURI05,NARC_mmodel_bonguri_p_nsbtx,},
{ BONGURI06,NARC_mmodel_bonguri_w_nsbtx,},
{ BONGURI07,NARC_mmodel_bonguri_bk_nsbtx,},
{ BONGURI01F,NARC_mmodel_bonmi_r_nsbtx,},
{ BONGURI02F,NARC_mmodel_bonmi_y_nsbtx,},
{ BONGURI03F,NARC_mmodel_bonmi_b_nsbtx,},
{ BONGURI04F,NARC_mmodel_bonmi_g_nsbtx,},
{ BONGURI05F,NARC_mmodel_bonmi_p_nsbtx,},
{ BONGURI06F,NARC_mmodel_bonmi_w_nsbtx,},
{ BONGURI07F,NARC_mmodel_bonmi_bk_nsbtx,},
//プラチナで追加されたもの	ここから
{ BRAINS1,NARC_mmodel_brains1_nsbtx,},
{ BRAINS2,NARC_mmodel_brains2_nsbtx,},
{ BRAINS3,NARC_mmodel_brains3_nsbtx,},
{ BRAINS4,NARC_mmodel_brains4_nsbtx,},
{ PRINCESS,NARC_mmodel_princess_nsbtx,},
{ BFSM,NARC_mmodel_bfsm_nsbtx,},
{ BFSW1,NARC_mmodel_bfsw1_nsbtx,},
{ BFSW2,NARC_mmodel_bfsw2_nsbtx,},
{ WIFISM,NARC_mmodel_wifism_nsbtx,},
{ WIFISW,NARC_mmodel_wifisw_nsbtx,},
//プラチナで追加されたもの　ここまで
{ KANSHI,NARC_mmodel_aji_peru_nsbtx,},
{ YADON,NARC_mmodel_yadon_nsbtx,},


{ DAIGO,NARC_mmodel_daigo_nsbtx,},
{ SHIRONA,NARC_mmodel_shirona_nsbtx,},

{ SHAKEHERO,NARC_mmodel_shakehero_nsbtx,},
{ SHAKEHEROINE,NARC_mmodel_shakeheroine_nsbtx,},
{ HOUOU,NARC_mmodel_hou_obj01_nsbtx,},
{ RUGIA,NARC_mmodel_lug_obj01_nsbtx,},

{ GSWOMAN6,NARC_mmodel_gswoman6_nsbtx,},

{ LEADER1,NARC_mmodel_leader1_nsbtx,},
{ LEADER2,NARC_mmodel_leader2_nsbtx,},
{ LEADER3,NARC_mmodel_leader3_nsbtx,},
{ LEADER4,NARC_mmodel_leader4_nsbtx,},
{ LEADER5,NARC_mmodel_leader5_nsbtx,},
{ LEADER6,NARC_mmodel_leader6_nsbtx,},
{ LEADER7,NARC_mmodel_leader7_nsbtx,},
{ LEADER8,NARC_mmodel_leader8_nsbtx,},
{ GANTETSU,NARC_mmodel_gantetsu_nsbtx,},
{ JUPETTA,NARC_mmodel_jupetta_nsbtx,},
{ SAKAKI,NARC_mmodel_sakaki_nsbtx,},
{ SUIT,NARC_mmodel_suit_nsbtx,},
{ CHOUROU,NARC_mmodel_chourou_nsbtx,},
{ RAPURASU,NARC_mmodel_rapurasu_nsbtx,},

{ OBJCODEMAX,0,},
};

//-----------------------------------------------------------------------------
/**
 *	@brief	オブジェコードからテクスチャIDを取得する
 *
 *	@param	int ObjCode
 *
 *	@retval	テクスチャID
 */
//-----------------------------------------------------------------------------
int PTConv_NpcObjCode( int ObjCode )
{
	int i;

	for( i=0; i<9999; i++ )
	{
		if( i == OBJCODEMAX )
		{
			return NULL;
		}
		else
		if( ObjCode == DATA_PkthlnNpcData[i].ObjCode )
		{
			return DATA_PkthlnNpcData[i].TexIdx;
		}
	}

	GF_ASSERT(0);

	return FALSE;

}